import 'package:json_annotation/json_annotation.dart';

part 'period_bean.g.dart';

@JsonSerializable()
class PeriodBean {
  double validmileage;
  int subject;
  int lastinstancetime;
  int needtime;

  PeriodBean(
      {this.validmileage, this.subject, this.lastinstancetime, this.needtime});

  PeriodBean.fromJson(Map<String, dynamic> json) {
    this.validmileage = json['validmileage'];
    this.subject = json['subject'];
    this.lastinstancetime = json['lastinstancetime'];
    this.needtime = json['needtime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['validmileage'] = this.validmileage;
    data['subject'] = this.subject;
    data['lastinstancetime'] = this.lastinstancetime;
    data['needtime'] = this.needtime;
    return data;
  }
}
